.userprofile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  overflow: hidden;
  
  &.visible {
    transform: translateX(0);
  }
}

.userprofile-content {
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.close-icon {
  font-size: 32px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
  
  .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .avatar-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3vw;
    font-weight: 500;
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    text-align: center;
    line-height: 1.2;
  }
  
  &:hover {
    transform: scale(1.05);
    
    .avatar-edit-overlay {
      background-color: rgba(0, 0, 0, 0.7);
    }
  }
  
  &:active {
    transform: scale(0.95);
  }
}

@keyframes fadeInBounce {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.profile-name {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.edit-button {
  margin-top: 15px;
  background-color: #1296db;
  color: #fff;
  border: none;
  font-size: 48px;
  padding: 0 24px;
  height: 80px;
  line-height: 80px;
  border-radius: 20px;
}

.edit-actions {
  display: flex;
  margin-top: 15px;
  width: 100%;
  justify-content: center;
  
  .cancel-button, .save-button {
    margin: 0 10px;
    font-size: 48px;
    padding: 0 24px;
    height: 80px;
    line-height: 80px;
    border-radius: 20px;
  }
  
  .cancel-button {
    background-color: #f5f5f5;
    color: #333;
    border: none;
    margin-right: 16px;
  }
  
  .save-button {
    background-color: #1296db;
    color: #fff;
    border: none;
  }
}

.profile-info {
  padding: 3vh 0;
  
  .info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 3vh;
    
    .item-label {
      color: #666;
      margin-bottom: 1vh;
      font-size: 4vw;
    }
    
    .item-value {
      color: #333;
      word-break: break-all;
      padding-left: 2vw;
      font-size: 4vw;
      line-height: 1.6;
    }
    
    .item-textarea {
      font-size: 4vw;
      color: #333;
      width: 100%;
      min-height: 20vh;
      padding: 4vw;
      border: 1px solid #e5e5e5;
      border-radius: 2vw;
      resize: vertical;
      outline: none;
      line-height: 1.6;
    }
  }
}

.loading-info {
  font-size: 4vw;
  color: #999;
  text-align: center;
  padding: 6vh;
} 

// 添加资料操作按钮区域样式
.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.password-button {
  font-size: 48px;
  border-radius: 24px;
  background-color: #5e8cf5;
  color: #fff;
  border: none;
  padding: 0 24px;
  height: 80px;
  line-height: 80px;
}

// 密码修改弹窗样式
.password-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}



.modal-content {
  width: 85%;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  z-index: 1002;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.modal-title {
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  display: block;
}

.modal-form {
  margin-bottom: 20px;
}

.form-item {
  margin-bottom: 15px;
}

.item-label {
  display: block;
  margin-bottom: 1vh;
  font-size: 4vw;
  color: #333;
}

.item-input {
  width: 100%;
  height: 10vh;
  line-height: 10vh;
  border: 1px solid #ddd;
  border-radius: 2vw;
  padding: 0 4vw;
  box-sizing: border-box;
  font-size: 4vw;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-actions .cancel-button,
.modal-actions .confirm-button {
  flex: 1;
  height: 10vh;
  line-height: 10vh;
  border-radius: 5vw;
  font-size: 4vw;
}

.modal-actions .cancel-button {
  background-color: #f7f7f7;
  color: #666;
  border: 1px solid #ddd;
}

.modal-actions .confirm-button {
  background-color: #5e8cf5;
  color: #fff;
  border: none;
}

.modal-actions .cancel-button {
  background-color: #f7f7f7;
  color: #666;
  border: 1px solid #ddd;
}

.modal-actions .confirm-button {
  background-color: #5e8cf5;
  color: #fff;
  border: none;
} 

// 修改编辑按钮和密码按钮样式，使其保持一致
.edit-button,
.password-button {
  font-size: 3.5vw;
  border-radius: 4vw;
  color: #fff;
  border: none;
  padding: 0 6vw;
  height: 8vh;
  line-height: 8vh;
  min-width: 25vw;
}

.edit-button {
  background-color: #4caf50;
}

.password-button {
  background-color: #5e8cf5;
}

// 改善资料操作按钮区域样式
.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

// 详细信息按钮样式
.detail-button {
  font-size: 3.5vw;
  border-radius: 4vw;
  background-color: #ff9800;
  color: #fff;
  border: none;
  padding: 0 6vw;
  height: 8vh;
  line-height: 8vh;
  min-width: 25vw;
}

// 详细信息抽屉样式
.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1002;
  display: flex;
  justify-content: flex-end;
}


.detail-content {
  width: 100%;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1004;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  border-bottom: 1px solid #eee;
  background-color: #f8f9fa;
}

.detail-title {
  font-size: 26px;
  font-weight: 500;
  color: #333;
}

.detail-close {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.detail-body {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.detail-list {
  padding: 0;
  background-color: #fff;
}

.detail-list-item {
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
  transition: background-color 0.2s ease;
  
  &:hover {
    background-color: #f5f5f5;
  }
  
  &:last-child {
    border-bottom: none;
  }
}

.item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  min-height: 76px;
}

.item-label {
  font-size: 4vw;
  color: #333;
  font-weight: 400;
}

.item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-value {
  font-size: 3.5vw;
  color: #999;
  max-width: 50vw;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow-icon {
  font-size: 26px;
  color: #c7c7cc;
  font-weight: 300;
}

// 清理不再使用的样式

// 编辑页面样式
.edit-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1005;
  display: flex;
  justify-content: flex-end;
}



.edit-content {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #f2f2f2;
  animation: slideInRight 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  min-height: 76px;
}

.edit-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  
  &:hover {
    background-color: #f5f5f5;
  }
}

.back-icon {
  font-size: 32px;
  color: #1296db;
  font-weight: 300;
}

.edit-title {
  font-size: 26px;
  font-weight: 500;
  color: #333;
  flex: 1;
  text-align: center;
  margin: 0 20px;
}

.edit-done-button {
  background-color: #1296db;
  color: #fff;
  border: none;
  padding: 2vh 5vw;
  border-radius: 3vw;
  font-size: 3.5vw;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: auto;
  &:hover {
    background-color: #0d7bb8;
  }
  
  &:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
}

.edit-body {
  flex: 1;
  padding: 30px 0;
  overflow-y: auto;
}

.edit-form {
  background-color: #fff;
  margin: 0 16px;
  border-radius: 8px;
  overflow: hidden;
}

.edit-input,
.edit-textarea {
  width: 100%;
  padding: 4vw;
  border: none;
  font-size: 4vw;
  color: #333;
  background-color: transparent;
  outline: none;
  resize: none;
}

.edit-textarea {
  min-height: 25vh;
  line-height: 1.6;
}

.edit-select-list {
  background-color: #fff;
}

.edit-select-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3vh 5vw;
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
  transition: background-color 0.2s ease;
  
  &:hover {
    background-color: #f5f5f5;
  }
  
  &:last-child {
    border-bottom: none;
  }
  
  &.selected {
    .select-label {
      color: #1296db;
    }
  }
}

.select-label {
  font-size: 4vw;
  color: #333;
  transition: color 0.2s ease;
}

.check-icon {
  font-size: 26px;
  color: #1296db;
  font-weight: 600;
}

// 日期选择器样式
.edit-date-picker {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
}

.selected-date-display {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.date-display-text {
  font-size: 18px;
  color: #333;
  font-weight: 500;
}

.date-picker-button {
  width: 200px;
  height: 44px;
  background-color: #1890ff;
  color: white;
  border-radius: 22px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  
  &:hover {
    background-color: #40a9ff;
  }
  
  &:active {
    background-color: #096dd9;
  }
}

// 日期选择器样式
.edit-date-picker {
  .selected-date-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    
    &:hover {
      background-color: #e9ecef;
      border-color: #1890ff;
    }
    
    .date-display-text {
      font-size: 16px;
      color: #333;
      flex: 1;
    }
    
    .picker-arrow {
      font-size: 18px;
      color: #999;
      margin-left: 10px;
    }
  }
}

// 媒体查询 - 针对不同屏幕尺寸优化
@media screen and (max-width: 375px) {
  // 小屏幕手机（iPhone SE等）
  .profile-info .info-item {
    .item-label, .item-value, .item-textarea {
      font-size: 5vw;
    }
  }
  
  .edit-button, .password-button, .detail-button {
    font-size: 4.5vw;
    min-width: 30vw;
  }
  
  .loading-info {
    font-size: 5vw;
  }
  
  .profile-avatar .avatar-edit-overlay {
    font-size: 4vw;
  }
}

@media screen and (min-width: 376px) and (max-width: 414px) {
  // 中等屏幕手机（iPhone 8 Plus, iPhone XR等）
  .profile-info .info-item {
    .item-label, .item-value, .item-textarea {
      font-size: 4.2vw;
    }
  }
  
  .edit-button, .password-button, .detail-button {
    font-size: 3.8vw;
  }
  
  .profile-avatar .avatar-edit-overlay {
    font-size: 3.5vw;
  }
}

@media screen and (min-width: 768px) {
  // 平板或大屏设备
  .profile-info .info-item {
    .item-label, .item-value, .item-textarea {
      font-size: 2.5vw;
      max-font-size: 24px;
    }
  }
  
  .edit-button, .password-button, .detail-button {
    font-size: 2vw;
    max-font-size: 20px;
  }
  
  .loading-info {
    font-size: 2.5vw;
    max-font-size: 24px;
  }
  
  .item-label {
    font-size: 2.5vw;
  }
  
  .item-value {
    font-size: 2.2vw;
  }
  
  .profile-avatar .avatar-edit-overlay {
    font-size: 2vw;
    max-font-size: 18px;
  }
}

@media screen and (orientation: landscape) {
  // 横屏模式优化
  .profile-info .info-item {
    .item-label, .item-value {
      font-size: 3vh;
    }
    
    .item-textarea {
      min-height: 15vh;
      font-size: 3vh;
    }
  }
  
  .edit-button, .password-button, .detail-button {
    height: 6vh;
    line-height: 6vh;
    font-size: 2.5vh;
  }
  
  .item-input {
    height: 6vh;
    line-height: 6vh;
    font-size: 3vh;
  }
}